0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 2 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 84 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 163 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 12 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 2153 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 578 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 133 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 6 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 114 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 56 ms)
↳38 CpxRNTS
↳39 FinalProof (⇔, 0 ms)
↳40 BOUNDS(1, n^1)
is_empty(nil) → true
is_empty(cons(x, l)) → false
hd(cons(x, l)) → x
tl(cons(x, l)) → l
append(l1, l2) → ifappend(l1, l2, is_empty(l1))
ifappend(l1, l2, true) → l2
ifappend(l1, l2, false) → cons(hd(l1), append(tl(l1), l2))
is_empty(nil) → true [1]
is_empty(cons(x, l)) → false [1]
hd(cons(x, l)) → x [1]
tl(cons(x, l)) → l [1]
append(l1, l2) → ifappend(l1, l2, is_empty(l1)) [1]
ifappend(l1, l2, true) → l2 [1]
ifappend(l1, l2, false) → cons(hd(l1), append(tl(l1), l2)) [1]
is_empty(nil) → true [1]
is_empty(cons(x, l)) → false [1]
hd(cons(x, l)) → x [1]
tl(cons(x, l)) → l [1]
append(l1, l2) → ifappend(l1, l2, is_empty(l1)) [1]
ifappend(l1, l2, true) → l2 [1]
ifappend(l1, l2, false) → cons(hd(l1), append(tl(l1), l2)) [1]
is_empty :: nil:cons → true:false nil :: nil:cons true :: true:false cons :: hd → nil:cons → nil:cons false :: true:false hd :: nil:cons → hd tl :: nil:cons → nil:cons append :: nil:cons → nil:cons → nil:cons ifappend :: nil:cons → nil:cons → true:false → nil:cons |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
hd
append
ifappend
is_empty
tl
tl(v0) → nil [0]
const
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
nil => 0
true => 1
false => 0
const => 0
append(z, z') -{ 2 }→ ifappend(0, l2, 1) :|: z' = l2, z = 0, l2 >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', l2, 0) :|: x' >= 0, l' >= 0, z' = l2, l2 >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ l2 :|: z = l1, z' = l2, l1 >= 0, l2 >= 0, z'' = 1
ifappend(z, z', z'') -{ 1 }→ 1 + hd(l1) + append(0, l2) :|: z'' = 0, z = l1, z' = l2, l1 >= 0, l2 >= 0
ifappend(z, z', z'') -{ 2 }→ 1 + hd(1 + x'' + l'') + append(l'', l2) :|: z'' = 0, l'' >= 0, z' = l2, x'' >= 0, l2 >= 0, z = 1 + x'' + l''
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
append(z, z') -{ 2 }→ ifappend(0, l2, 1) :|: z' = l2, z = 0, l2 >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', l2, 0) :|: x' >= 0, l' >= 0, z' = l2, l2 >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ l2 :|: z = l1, z' = l2, l1 >= 0, l2 >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', l2) :|: z'' = 0, l'' >= 0, z' = l2, x'' >= 0, l2 >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, l2) :|: z'' = 0, z = l1, z' = l2, l1 >= 0, l2 >= 0, x >= 0, l >= 0, l1 = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
{ is_empty } { ifappend, append } { tl } { hd } |
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: ?, size: O(1) [1] |
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] |
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] |
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: ?, size: O(n2) [z + z2 + z'] append: runtime: ?, size: O(n2) [12 + 14·z + 4·z2 + z'] |
append(z, z') -{ 2 }→ ifappend(0, z', 1) :|: z = 0, z' >= 0
append(z, z') -{ 2 }→ ifappend(1 + x' + l', z', 0) :|: x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 3 }→ 1 + x + append(l'', z') :|: z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 2 }→ 1 + x + append(0, z') :|: z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] tl: runtime: ?, size: O(n1) [z] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] tl: runtime: O(1) [1], size: O(n1) [z] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] tl: runtime: O(1) [1], size: O(n1) [z] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] tl: runtime: O(1) [1], size: O(n1) [z] hd: runtime: ?, size: O(n1) [z] |
append(z, z') -{ 3 }→ s :|: s >= 0, s <= 1 * 0 + 1 * (0 * 0) + 1 * z', z = 0, z' >= 0
append(z, z') -{ 8 + 5·l' + 5·x' }→ s' :|: s' >= 0, s' <= 1 * (1 + x' + l') + 1 * ((1 + x' + l') * (1 + x' + l')) + 1 * z', x' >= 0, l' >= 0, z' >= 0, z = 1 + x' + l'
hd(z) -{ 1 }→ x :|: x >= 0, l >= 0, z = 1 + x + l
ifappend(z, z', z'') -{ 1 }→ z' :|: z >= 0, z' >= 0, z'' = 1
ifappend(z, z', z'') -{ 6 + 5·l'' }→ 1 + x + s'' :|: s'' >= 0, s'' <= 12 + 14 * l'' + 4 * (l'' * l'') + 1 * z', z'' = 0, l'' >= 0, x'' >= 0, z' >= 0, z = 1 + x'' + l'', x >= 0, l >= 0, 1 + x'' + l'' = 1 + x + l
ifappend(z, z', z'') -{ 5 }→ 1 + x + s1 :|: s1 >= 0, s1 <= 12 + 14 * 0 + 4 * (0 * 0) + 1 * z', z'' = 0, z >= 0, z' >= 0, x >= 0, l >= 0, z = 1 + x + l
is_empty(z) -{ 1 }→ 1 :|: z = 0
is_empty(z) -{ 1 }→ 0 :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 1 }→ l :|: x >= 0, l >= 0, z = 1 + x + l
tl(z) -{ 0 }→ 0 :|: z >= 0
is_empty: runtime: O(1) [1], size: O(1) [1] ifappend: runtime: O(n1) [1 + 5·z], size: O(n2) [z + z2 + z'] append: runtime: O(n1) [3 + 5·z], size: O(n2) [12 + 14·z + 4·z2 + z'] tl: runtime: O(1) [1], size: O(n1) [z] hd: runtime: O(1) [1], size: O(n1) [z] |